@width: 100%;

.display {
  display: inline-block;
  vertical-align: top;
}

.box {
  box-sizing: border-box;
}

.ly-content {
  .ly-nav-list {
    width: @width;
    margin-top: 40px;
    font-size: 0;
    border-bottom: 1px solid #ccc;
    li {
      width: 10%;
      .display;
      line-height: 40px;
      color: #333;
      font-size: 16px;
      text-align: center;
      &:nth-child(1) {
        width: 30%;
      }
      &:nth-child(2) {
        width: 15%;
      }
      &:nth-child(5) {
        width: 15%;
      }
    }
  }
  .ly-shop {
    width: @width;
    font-size: 0;
    margin-top: 20px;
    li {
      width: @width;
      margin-top: 20px;
      padding-bottom: 20px;
      border-bottom: 1px dashed #e5e5e5;
      dt {
        width: 10%;
        .display;
        color: #333;
        text-align: center;
        height: 160px;
        overflow: hidden;
        //line-height: 100px;
        font-size: 14px;
        border-right: 1px solid #e5e5e5;
        .box;
        &:last-child {
          border-right: none;
        }
        .ly-display {
          display: none;
        }
        .box;
        &:nth-child(1) {
          width: 30%;
        }
        &:nth-child(2) {
          width: 15%;
          padding: 0 0 0 10px;
        }
        &:nth-child(5) {
          width: 15%;
        }
        img {
          width: 170px;
          height: 157px;
          float: left;
          margin-right: 10px;
        }
        h1 {
          font-size: 14px;
          padding: 0 10px;
          line-height: 25px;
          height: 40px;
          text-align: left;
        }
        p {
          line-height: 20px;
          font-size: 12px;
          color: #666;
          text-align: left;
        }
        a {
          display: block;
          line-height: 30px;
        }
        .ly-num {
          width: 100px;
          height: 30px;
          line-height: 30px;
          font-size: 0;
          margin: 0 auto;
          span {
            width: 30px;
            height: 30px;
            .box;
            border: 1px solid #e5e5e5;
            .display;
            font-size: 16px;
            cursor: pointer;
          }
          input {
            width: 40px;
            height: 30px;
            font-size: 16px;
            text-align: center;
            border: none;
            border-bottom: 1px solid #e5e5e5;
            border-top: 1px solid #e5e5e5;
            .display;
            .box;
          }
        }
      }
    }
  }
  .ly-shop-over {
    margin-top: 30px;
    width: @width;
    text-align: right;
    p {
      line-height: 30px;
      font-size: 14px;
      span {
        color: #000;
      }
    }
  }
  .ly-line {
    width: @width;
    line-height: 40px;
    padding: 60px 0 30px;
    text-align: center;
    .ly-aglin {
      float: left;
      padding: 0 30px;
      color: #fff;
      font-size: 14px;
      background: #000;
    }
    .ly-xuan {
      padding: 0 30px;
      color: #333;
      font-size: 14px;
      background: #ccc;
      display: inline-block;
      cursor: pointer;
    }
    .ly-submit {
      float: right;
      padding: 0 30px;
      color: #fff;
      font-size: 14px;
      background: #000;
    }
  }
}

.ly-input {
  padding: 2px 5px;
}


@media screen  and (max-width: 760px) {
  .ly-content {
    .ly-nav-list {
      display: none;
      border-bottom: none;
    }
    .ly-shop {
      li {
        padding-bottom: 30px;
        height: 111px;
        position: relative;
        dt {
          height: auto;
          line-height: 0;
          display: inline;
          border-right: none;
          img{
            width: 120px;
            height: 111px;
          }
          .ly-display {
            display: inline;
          }
          &:nth-child(1) {
            width: @width;
            h1 {
              margin-bottom: 20px;
              line-height: 20px;
            }
          }
          &:nth-child(2) {
            display: none;
          }
          &:nth-child(3) {
            margin-right: 20px;
          }
          &:nth-child(5) {
            display: none;
          }
          &:nth-child(6) {
            width: 30%;
            float: right;
            line-height: 30px;
            text-align: left;
            margin-top: -20px;
          }
          &:nth-child(7) {
            width: 20%;
            float: right;
            line-height: 30px;
            text-align: right;
            margin-top: 20px;
          }
          a{
            text-align: right;
            &.ly-delete{
              position: absolute;
              top: 0;
              right: 0;
              z-index: 9;
            }
            &.number_by_chance{
              background: #000;
              height: 30px;
              padding: 0 5px;
              color: #fff;
              float: right;
            }
          }
          .ly-num {
            margin: 15px 0 10px 130px;
            width: 120px;
            text-align: left;
            span {
              text-align: center;
            }
          }
        }
      }
    }
    .ly-shop-over {
      p {
        span {
          color: #000;
          margin-left: 10px;
        }
      }
    }
    .ly-line {
      position: relative;
      padding: 80px 0 30px;
      .ly-xuan {
        position: absolute;
        top: 20px;
        right: 0;
      }
      .ly-aglin {
        padding: 0 30px;
        color: #fff;
        font-size: 14px;
        background: #000;
      }
      .ly-submit {
        background: #000;
      }
    }
  }
}